import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
    code: [{ required: true, message: "编码为必填项", trigger: "blur" }],
    shelvesid: [{ required: true, message: "所属货架为必填项", trigger: "blur" }],
    layer: [{ required: true, message: "所在排数为必填项", trigger: "change" }],
    row: [{ required: true, message: "所在列数为必填项", trigger: "blur" }],
    status: [{ required: true, message: "货位状态为必填项", trigger: "change" }],
    attribute: [{ required: true, message: "货位类型为必填项", trigger: "change" }],
    auxiliary: [{ required: true, message: "辅助站点为必填项", trigger: "change" }],
    sort: [{ required: true, message: "排序为必填项", trigger: "blur" }]
});
